define(function () {

	return {

		sendGET: function(url, callback_succ, callback_error, async){
		  	var _async = false;
		  	if(async != null)
		  		_async = async;
		  		
		    $.ajax
		    ({
		  		url: url,
		  		contentType: "application/json; charset=utf-8",
		    	type: 'GET',
		    	dataType: "json",
		      	async: _async,
		      	success: callback_succ,
		      	error: callback_error
		    });
		    
		},	
		sendPOST: function(url,body, callback_succ, callback_error, async){
		  	var _async = false;
		  	if(async != null)
		  		_async = async;
		  		
		    $.ajax
		    ({
		  		url: url,
		  		contentType: "application/json; charset=utf-8",
			    type: 'POST',
			    data: body,
		    	dataType: "json",
		      	async: _async,
		      	success: callback_succ,
		      	error: callback_error
		    });
		    
		},
		
		sendDELETE: function(url,body, callback_succ, callback_error, async){
			var _async = false;
		  	if(async != null)
		  		_async = async;
		  		
		    $.ajax
		    ({
		  		url: url,
		  		contentType: "application/json; charset=utf-8",
			    type: 'DELETE',
			    data: body,
		    	dataType: "json",
		      	async: _async,
		      	success: callback_succ,
		      	error: callback_error
		    });
		}
	};

});
